/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package boundless.notifications;

import boundless.ejb.RequestBean;
import boundless.entities.Traderequests;

/**
 *
 * @author hendrikdekock
 */
public class TradeRequestNotification extends AbstractNotification<Traderequests>{
    
    /**
     * The trade request under consideration
     */
    Traderequests tr;
    RequestBean rb;
    
    public TradeRequestNotification(Traderequests tr, RequestBean rb) {
     super();
     this.tr = tr;
     this.rb = rb;
    }
    
    /**
     * Accept the request
     */
    public void acceptTradeRequest() {
        rb.acceptTradeRequest(tr);
        
    }
    
    /**
     * Decline the request
     */
    public void declineTradeRequest() {
        rb.declineTradeRequest(tr);
        
    }
    
}
